Skip to main content

Continuing a workflow in the event of parallel task failure

In a workflow, all task elements have an error port. This allows you to change the course of the workflow in the event of a task failure, as described in Step Adding and designing workflows above. Similar to Task elements, the Synchronize gateway also has an error port which can be used to reroute the workflow if any of the tasks between the Parallel Split and Synchronize gateways should fail.

By default, a workflow will end with an error if one or more parallel tasks do not complete successfully. However, in certain cases you may want the workflow to continue, even if one or more of the parallel tasks failed.

To do this, you need to connect the error port of the relevant task(s) directly to the Synchronize gateway. You can also design the workflow so that it follows the path leading from the Synchronize error port, instead of continuing its normal flow.

In the example below, the error port of the MyCommandTask is connected to the Synchronize gateway, meaning that even if MyCommandTask task fails, the workflow will continue. However, if the MyCommandTask task fails, the workflow will not proceed directly to the End element. Instead, it will follow the Synchronize gateway’s error path to the Source task.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!